package com.example.schoolenterprisealliance.activity;
//跳转显示信息
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Switch;
import android.widget.TextView;

import com.example.schoolenterprisealliance.MainActivity;
import com.example.schoolenterprisealliance.R;
import com.example.schoolenterprisealliance.bean.Policy;
import com.example.schoolenterprisealliance.fragment.DynamicFragment;
import com.example.schoolenterprisealliance.fragment.HomePageFragment;
import com.example.schoolenterprisealliance.fragment.PolicyFragment;
import com.example.schoolenterprisealliance.html.HtmlText;
public class ItemActivity extends AppCompatActivity {
    private TextView tv_title;
    private TextView tv_time;
    private TextView tv_context;
    private Button bt_return;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_infromation);
        tv_title=findViewById(R.id.tv_title);
        tv_time=findViewById(R.id.tv_time);
        tv_context=findViewById(R.id.tv_context);
        bt_return=findViewById(R.id.bt_return);
        Intent intent=getIntent();
        tv_title.setText(intent.getStringExtra("title"));
        tv_time.setText(intent.getStringExtra("time"));
        tv_context.setText(HtmlText.Html.delHTMLTag(intent.getStringExtra("context")));
        bt_return.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

}
